package cn.hls.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
/**
  *@fileName: Emergency.java
  *@package: cn.hls.entity
　*@Description:应急预案实体
　*@author: yinghui.zhang
　*@email: uuhui@163.com
  *@date: 2016年12月17日
 *
 */
@Table(name="t_emergency")
@Entity
@DynamicInsert
@DynamicUpdate
public class Emergency extends BaseEntity {
	private static final long serialVersionUID = 8830263697963050658L;
	private String emergencyId;//应急预案编号
	private String 	emergencyName;//应急预案名称
	private String dangerGoodsName;//危险品名称
	private Integer dangerLevel;//危险品
	private Date emergencyTime;//应急预案日期
	private String emergencyPlan;//应急方案
	private String attachName;//附件名称
	@Column(name="emergency_id",length=16)
	public String getEmergencyId() {
		return emergencyId;
	}
	public void setEmergencyId(String emergencyId) {
		this.emergencyId = emergencyId;
	}
	@Column(name="emergency_name",length=64)
	public String getEmergencyName() {
		return emergencyName;
	}
	public void setEmergencyName(String emergencyName) {
		this.emergencyName = emergencyName;
	}
	
	@Column(name="danger_goods_name",length=64)
	public String getDangerGoodsName() {
		return dangerGoodsName;
	}
	public void setDangerGoodsName(String dangerGoodsName) {
		this.dangerGoodsName = dangerGoodsName;
	}
	@Column(name="danger_level",length=16)
	public Integer getDangerLevel() {
		return dangerLevel;
	}
	public void setDangerLevel(Integer dangerLevel) {
		this.dangerLevel = dangerLevel;
	}
	
	@Column(name="emergency_time")
	public Date getEmergencyTime() {
		return emergencyTime;
	}
	public void setEmergencyTime(Date emergencyTime) {
		this.emergencyTime = emergencyTime;
	}
	@Column(name="emergency_plan",length=32)
	public String getEmergencyPlan() {
		return emergencyPlan;
	}
	public void setEmergencyPlan(String emergencyPlan) {
		this.emergencyPlan = emergencyPlan;
	}
	@Column(name="attach_name",length=100)
	public String getAttachName() {
		return attachName;
	}
	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}
}
